// ============================== 导入依赖 ============================== //

import * as echarts from 'echarts'

const COLOR = [
  new echarts.graphic.LinearGradient(0, 0, 0, 1, [
    { offset: 0, color: '#C0D9FF' },
    { offset: 1, color: '#2B74E5' },
  ]),
]

// ============================== 导出配置 ============================== //

export default {
  tooltip: {
    trigger: 'item',
  },
  grid: {
    top: 16,
    left: 0,
    right: 0,
    bottom: 0,
    containLabel: true,
  },
  xAxis: {
    data: [],
    axisTick: {
      show: false,
    },
    axisLabel: {
      color: '#666',
      interval: 0,
      rotate: 30,
    },
    axisLine: {
      lineStyle: {
        color: '#999',
      },
    },
  },
  yAxis: {
    axisLabel: {
      color: '#666',
    },
    splitLine: {
      lineStyle: {
        color: '#eee',
      },
    },
    axisTick: {
      show: false,
    },
  },
  series: [
    {
      type: 'bar',
      data: [],
      barWidth: 16,
      label: {
        show: false,
        position: 'top',
        distance: 2,
      },
      itemStyle: {
        color: COLOR[0],
      },
    },
  ],
}
